home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
14439
/
14439.xpi
/
chrome
/
tabber.jar
/
content
/
tabber.xml
< prev
next >
Wrap
Extensible Markup Language
|
2009-10-12
|
2KB
|
68 lines
<?xml version="1.0"?>
<bindings id="tabberwocky-bindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="tab-label" extends="xul:hbox">
<content>
<xul:vbox class="tab-label-inner-box" flex="1">
<xul:progressmeter
class="tab-progress"
mode="normal"
xbl:inherits="value=tabprogressbar-progress"/>
<xul:label
class="tab-real-text"
flex="1"
xbl:inherits="value,crop,accesskey"/>
</xul:vbox>
</content>
<implementation>
<constructor><![CDATA[
var node = this.parentNode;
while (node.localName != 'tab')
node = node.parentNode;
node.addEventListener('DOMAttrModified', this.eventHandler, false);
]]></constructor>
<destructor><![CDATA[
var node = this.parentNode;
while (node.localName != 'tab')
node = node.parentNode;
node.removeEventListener('DOMAttrModified', this.eventHandler, false);
]]></destructor>
<field name="eventHandler"><![CDATA[
({
mOwner : this,
handleEvent : function(aEvent)
{
if (aEvent.attrName != 'label') return;
this.mOwner.setAttribute('value', aEvent.target.getAttribute('label'));
}
})
]]></field>
</implementation>
</binding>
<binding id="scrollbar" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar">
<implementation>
<constructor><![CDATA[
if (navigator.platform.indexOf('Mac') != -1)
this.initScrollbar();
if (this.orient == 'horizontal')
this.parentNode.mHorizontalScrollbar = this;
else
this.parentNode.mVerticalScrollbar = this;
]]></constructor>
<destructor><![CDATA[
if (this.orient == 'horizontal')
this.parentNode.mHorizontalScrollbar = null;
else
this.parentNode.mVerticalScrollbar = null;
]]></destructor>
</implementation>
</binding>
</bindings>